﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Markup;
using System.ComponentModel;

namespace SDF
{
    [ContentProperty("Inlines")]
    public class Span : SmartInline, IInlineContainer
    {
        #region Constructors

        public Span()
        {
            _Inlines = new SmartInlineCollection(this);
            AttachCollection(_Inlines, true);
        }

        #endregion

        #region Properties

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public SmartInlineCollection Inlines
        {
            get { return _Inlines; }
        }
        private SmartInlineCollection _Inlines;

        #endregion

        #region IsVisualCollection

        protected override bool IsVisualCollection(object collection)
        {
            return (collection == Inlines);
        }
        #endregion
    }
}
